package com.xhsj.user.pms.patent.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xhsj.user.pms.patent.domain.DisclosureInventor;
import com.xhsj.user.pms.patent.query.InventorListQuery;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface DisclosureInventorMapper extends BaseMapper<DisclosureInventor> {

    List<DisclosureInventor> getListByDisclosureId(@Param("disclosureId") String disclosureId);

    // 发明人
    List<Long> getInventor(@Param("disclosureId") List<String> disclosureId);

    // 获取操作人通过底书id
    @MapKey("disclosureId")
    Map<String, InventorListQuery> getInventorList(@Param("disclosureIdList") List<String> disclosureIdList);

    // 删除反馈意见通过交底书id
    void deleteByDisclosureId(@Param("disclosureId") String disclosureId);

    //  发明人id
    List<Long> getInventorUserId(@Param("disclosureId") String disclosureId);
}